﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Store.Models
{
    public class GoodsEvaluate : BaseEnity
    {
        [StringLength(2000)]
        public string Content { get; set; }

        /// <summary>
        /// 评价等级
        /// </summary>
        public int Grade { get; set; } = (int)Store.Models.Enum.GoodsEvaluateGrade.好评;

        #region 导航属性 关连用户表
        public Guid UserId { get; set; }
        public User Users { get; set; }
        #endregion

        #region 导航属性 关连商品表
        public Guid GoodsId { get; set; }
        public Goods Goods { get; set; }
        #endregion
    }
}
